<%@ page pageEncoding="utf-8" contentType="text/html" %>
<%@ page import="model.*" %>
<%
	User u = (User) request.getAttribute("user");
%>

<%@ include file="header.tpl.jsp"%>

<form action="ChangeProfile" method="post">

<div class="box">
	<h2>Change your profile</h2>
		<table>
			<tr>
				<th>User Name：</th>
				<td><input type="text" id="uname" name="uname" value="<%=u.getUsername()%>" /></td>
			</tr>
			
			<tr>
				<th>Old Password：</th>
				<td><input type="password" id="opwd" name="opwd" /> </td>
			</tr>
			
			<tr>
				<th>New Password：</th>
				<td><input type="password" id="npwd1" name="npwd1" /> </td>
			</tr>
			
			<tr>
				<th>Confirm New Password：</th>
				<td><input type="password" id="npwd2" name="npwd2" /> </td>
			</tr>
		</table>
</div>

<div class="post_buttons">
	<button type="submit">Complete and Submit it</button>
</div>

</form>

<%@ include file="footer.tpl.jsp"%>